package com.ybkj.o2o.zhuanche.service;

import com.ybkj.o2o.zhuanche.common.query.CarTypeQuery;
import com.ybkj.o2o.zhuanche.entity.ServiceType;
import com.ybkj.o2o.zhuanche.entity.ServiceTypeCriteria;

import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface ServiceTypeService extends BaseService<ServiceType, ServiceTypeCriteria, Long> {

  ServiceType findByServiceTypeId(Long serviceTypeId, String appKey);

  List<ServiceType> findByCarTypeId(Long carTypeId, String appKey);

  int deleteById(Long id, String appKey);

  List<ServiceType> findByServiceType(String carType, String appKey);

  List<ServiceType> findByCompanyName(String companyName, RowBounds rowBounds, String appKey);

  Long countByCompanyName(String companyName, String appKey);

  ServiceType findByNameAndCarTypeId(Long carTypeId,Long companyId, String name, String appKey);

  List<ServiceType> findByCarTypeCompanyId(Long carTypeCompanyId, String appKey);

  ServiceType findByCarTypeCompanyIdAndServiceType(Long carTypeCompanyId, String serviceType,
      String appKey);

  List<ServiceType> findByCarTypeIdAndCarTypeCompanyId(Long carTypeId, Long carTypeCompanyId,
      String appKey);

  
  
  ServiceType queryServiceType(CarTypeQuery carTypeQuery);

  Long deleteByCarTypeId(Long carTypeId, String appKey);

}
